type PointType = {
    x: number
    y: number
    // ?表示该属性是可有可无的
    z?: number
}

const printMove = (move: PointType): void => {
    console.log(move)
}

printMove({x: 10, y: 10, z: 10})
printMove({x: 10, y: 10})
